<?php
include("includes/connect.php"); 
session_start();
if(isset($_REQUEST['user']) && isset($_REQUEST['c'])) 
{
	
	$sql=mysql_query("update user set record_status='Y' where email_id=".$_REQUEST['user']);
	if($sql) {
		header('Location:mypage.php');
	}
	else {
		header('Location:error.php');
	}
}
else {
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Hoonur.com allows you to connect with the right professionals in the entertainment industry</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<div id="wrapper">
<?php 
$title="Verify email";
$mtitle="Login";
$titlelink="login.php";
include("header.php"); 
?>
<div id="title">
<?php if(isset($_REQUEST['resend']) && $_REQUEST['resend']='Y') { ?>
Email sent
<?php } else { ?>
Verify your email id
<?php } ?>
</div>
<div id="forgetpass">
<?php if(isset($_REQUEST['resend']) && $_REQUEST['resend']='Y') { ?>
An email has been sent to your account along with a verification link.<br><br>
Remember to check your junk or spam folder or filter if you do not recieve this mail<br>
For more technical assistance you can post your query in our <a href="feedback.php">Feedback form</a>
<?php } else { ?>
We have sent an email to your account with a verification link. Click on the link in the email to verify your account <br />
(check your junk or spam folder/filterif you do not see this email in your inbox)<br /><br />
Not received an email from Hoonur.com? To resend the verification email, <a href="resend.php">click here</a>
<?php } ?>
</div>
<div id="add">
	<img src="images/addsense.jpg" />
</div>
    
<?php include("footer.php"); ?>
</div>
</body>
</html>
<?php
}
?>